"use strict";
cc._RF.push(module, 'fc97c4GNINI+K+rFtAmfY8V', 'I18n');
// scripts/I18n.js

"use strict";

var t = require;
var e = module;
var o = exports;

var _n8,
    i = void 0 && (void 0).__extends || (_n8 = function n(t, e) {
  return (_n8 = Object.setPrototypeOf || {
    __proto__: []
  } instanceof Array && function (t, e) {
    t.__proto__ = e;
  } || function (t, e) {
    for (var o in e) {
      Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
    }
  })(t, e);
}, function (t, e) {
  function o() {
    this.constructor = t;
  }

  _n8(t, e), t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
}),
    s = void 0 && (void 0).__decorate || function (t, e, o, n) {
  var i,
      s = arguments.length,
      r = s < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, o) : n;
  if ("object" == (typeof Reflect === "undefined" ? "undefined" : typeof Reflect) && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, o, n);else for (var c = t.length - 1; c >= 0; c--) {
    (i = t[c]) && (r = (s < 3 ? i(r) : s > 3 ? i(e, o, r) : i(e, o)) || r);
  }
  return s > 3 && r && Object.defineProperty(e, o, r), r;
};

Object.defineProperty(o, "__esModule", {
  value: !0
});

var r = t("Game"),
    c = cc._decorator,
    a = c.ccclass,
    u = c.property,
    l = function (t) {
  function e() {
    var e = null !== t && t.apply(this, arguments) || this;
    return e.languageKey = "", e.useSystem = !1, e;
  }

  return i(e, t), e.prototype.onLoad = function () {
    this.init();
  }, e.prototype.init = function () {
    var t = cc.find("Canvas").getComponent(r["default"]);
    this.useSystem && (this.node.getComponent(cc.Label).fontFamily = "Arial", this.node.getComponent(cc.Label).useSystemFont = !0), t.currentLanguages > 3 && (this.node.getComponent(cc.Label).fontFamily = "Arial", this.node.getComponent(cc.Label).useSystemFont = !0), this.node.getComponent(cc.Label).string = t.getLanguage(this.languageKey);
  }, e.prototype.start = function () {}, s([u()], e.prototype, "languageKey", void 0), s([u()], e.prototype, "useSystem", void 0), s([a], e);
}(cc.Component);

o["default"] = l;

cc._RF.pop();